package game.components.squares;

import game.components.Cordinent;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;

public class EmptySquare extends BasicSquare
{

	private static final long	serialVersionUID	= 8492865415672746519L;

	public EmptySquare(Cordinent location)
	{
		this(null, location);
	}

	public EmptySquare(MouseListener l, Cordinent location)
	{
		super(l, location);
		this.movable = false;
		this.movableMultipleSquares = false;
	}

	@Override
	public void paintComponent(Graphics g)
	{
		Graphics2D g2d = BasicSquare.getAntiAliasedGraphics(g);
		ImageIcon icon = new ImageIcon("images\\grass.png");
		Image image = icon.getImage();
		g2d.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), null);

		g2d.setColor(Color.white);

		super.drawBorder(g2d);

		if (this.highlighted)
		{
			this.highlight(g2d);
		}
	}

}
